//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_after_return.js中编写
//************************************************
export default function () {
	return {
		editFormFields: {
			After_return: '',
			After_delivery: '',
			Voucher_sub: '',
			After_delivery_sub: '',
			WHSE_no: '',
			Client_name: '',
			Goods_num: '',
			Remark: '',
			Attachment: '',
			Image: ''
		},
		editFormOptions: [
			{ title: '单据编码', field: 'Voucher_sub', type: 'text', readonly: true },
			{ key: '一级仓库', data: [], title: '退货机构', required: true, field: 'WHSE_no', type: 'select' },
			{ title: '售后发货单', field: 'After_delivery_sub', type: 'text' },
			{ title: '数量', required: true, field: 'Goods_num', type: 'number' , readonly: true},
			{ key: '无条件客户', data: [], title: '客户名称', field: 'Client_name', type: 'select', readonly: true },
			{ title: '附件', field: 'Attachment', type: 'file' },
			{ title: '图片', field: 'Image', type: 'img' },
			{ title: '备注', field: 'Remark', type: 'textarea' },
			{ title: 'ID', field: 'After_return', disabled: true, required: true , hidden: true },
			{ title: '售后发货单ID', field: 'After_delivery', disabled: true, hidden: true }
		],
		searchFormFields: { Voucher_sub: '', Client_name: '', After_delivery_sub: '', WHSE_no: '', AuditStatus: '', AuditDate: '', Creator: '', CreateDate: '' },
		searchFormOptions: [
			{ key: '一级仓库', data: [], title: '退货机构', field: 'WHSE_no' },
			{ title: '创建人员', field: 'Creator' },
			{ type: 'group' },
			{ title: '单据编码', field: 'Voucher_sub', type: 'like' },
			{ title: '售后发货单', field: 'After_delivery_sub', type: 'like' },
			{ key: '无条件客户', data: [], title: '客户名称', field: 'Client_name', type: 'select' },
			{ type: 'group' },
			{ key: 'audit', data: [], title: '审核状态', field: 'AuditStatus', type: 'select' },
			{ title: '审核时间', field: 'AuditDate', type: 'datetime' },
			{ title: '创建时间', field: 'CreateDate', type: 'datetime' }
		],
		columns: [
			{ field: 'Voucher_sub', title: '单据编码', type: 'string', link: true },
			{ field: 'Client_name', title: '客户名称', type: 'string', bind: { key: '无条件客户', data: [] } },
			{ field: 'After_delivery_sub', title: '售后发货单', type: 'string' },
			{ field: 'Goods_num', title: '数量', type: 'float' },
			{ field: 'WHSE_no', title: '退货机构', type: 'string', bind: { key: '一级仓库', data: [] } },
			{ field: 'Attachment', title: '附件', type: 'file' },
			{ field: 'Image', title: '图片', type: 'img' },
			{ field: 'Remark', title: '备注', type: 'string' },
			{ field: 'AuditStatus', title: '审核状态', type: 'int', bind: { key: 'audit', data: [] } },
			{ field: 'AuditDate', title: '审核时间', type: 'datetime' },
			{ field: 'Creator', title: '创建人员', type: 'string' },
			{ field: 'CreateDate', title: '创建时间', type: 'datetime' }
		],
		table: {
			key: 'After_return',
			footer: 'Foots',
			cnName: '售后退货单',
			name: 'q_after_return',
			url: '/q_after_return/',
			sortName: 'Voucher_sub'
		}
	};
}
